package com.judge.mylibrary;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

/**有点击效果的FrameLayout，需要点击效果的view可以作为它的子view
 * Created by xuzhifan on 2016/12/8 0008.
 */

public class ClickableFrameLayout extends FrameLayout{


    public ClickableFrameLayout(Context context) {
        super(context);
    }

    public ClickableFrameLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        setForeground(getResources().getDrawable(R.drawable.selector_foreground));
        setClickable(true);
    }

    public ClickableFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
}
